.kdxq{
    width: 100vw;
    height: 100vh;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
}
.kdxq-top{
    width: 100%;
    height: 40px;
    background-color: #fff;
    padding-top: 10px;
}
.kdxq-top-left{
    width: 20px;
    height: 20px;
    margin-left: 15px;
}
.kdxq-top-title{
    margin-left: 130px;
    font-size: 17px;
}

.kdxq-bg{
    width: 100%;
    flex: 1;
    background-color: #fff;
    padding: 20px 20px 20px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.kdxq-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-tabs{
    display: flex;
    gap: 30px;
}

.nav-tab{
    position: relative;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-tab:hover .tab-text{
    color: #1890ff;
}

.nav-tab.active .tab-text{
    color: #333;
    font-weight: 500;
}

.nav-tab:not(.active) .tab-text{
    color: #666;
}

.tab-text{
    font-size: 16px;
    transition: color 0.3s ease;
}

.tab-underline{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1890ff;
    border-radius: 2px;
}

.nav-link{
    cursor: pointer;
}

.link-text{
    color: #1890ff;
    font-size: 16px;
    font-weight: 500;
}

.nav-link:hover .link-text{
    color: #40a9ff;
}

.kdxq-content{
    display: flex;
    flex: 1;
    margin-top: 20px;
    gap: 0;
    padding-left: 0;
}

.sidebar{
    width: 100px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.category-list{
    display: flex;
    flex-direction: column;
}

.category-item{
    position: relative;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    height: 40px;
    display: flex;
    align-items: center;
}

.category-item:hover{
    background-color: #e8e8e8;
}

.category-item.active{
    color: #333;
    background-color: #fff;
    font-weight: 500;
}

.category-item.active::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #1890ff;
}

.main-content{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin-left: 0;
    max-height: calc(100vh - 200px);
}

.product-list{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card{
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 15px;
    min-height: 80px;
    width: 100%;
    margin-right: 0;
    align-items: flex-start;
    box-sizing: border-box;
}

.product-image{
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.image-placeholder{
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

.product-info{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-title{
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.product-description{
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.price-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.product-price{
    font-size: 16px;
    font-weight: 600;
    color: #ff4d4f;
}

.product-tags{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.tag{
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag.prescription{
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag.limit{
    background-color: #fff1f0;
    color: #ff4d4f;
}

.quantity-selector{
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.qty-btn{
    width: 28px;
    height: 28px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover:not(:disabled){
    border-color: #1890ff;
    color: #1890ff;
}

.qty-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input{
    width: 35px;
    height: 28px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    text-align: center;
    font-size: 14px;
}

.qty-input:focus{
    outline: none;
    border-color: #1890ff;
}

.tab-content{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
}

.empty-content{
    text-align: center;
}

.bottom-bar{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.order-summary{
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon{
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #1890ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-icon{
    font-size: 20px;
    color: white;
}

.badge{
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.summary-text{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selected-count{
    font-size: 14px;
    color: #333;
}

.total-price{
    font-size: 16px;
    color: #333;
}

.price{
    color: #ff4d4f;
    font-weight: 600;
}

.submit-btn{
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover{
    background-color: #40a9ff;
}

.submit-btn:active{
    background-color: #096dd9;
}

// 空状态样式
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

// 检查页面样式
.exam-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 60px;
}

.exam-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exam-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.exam-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
}

.exam-tag {
    display: inline-block;
    background-color: #ff4d4f;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 3px;
    width: fit-content;
}

.exam-selector {
    flex-shrink: 0;
    margin-left: 15px;
}

.select-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #d9d9d9;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    color: #d9d9d9;
}

.select-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.select-btn.selected {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

// 检验页面样式
.test-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 60px;
}

.test-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.test-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.test-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
}

.test-selector {
    flex-shrink: 0;
    margin-left: 15px;
}

/* 已选项目模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

.selected-items-list {
    flex: 1;
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f8f8f8;
}

.selected-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    margin-right: 16px;
}

.item-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.item-price {
    font-size: 14px;
    color: #fa8c16;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal-footer {
    padding: 16px 20px 20px 20px;
    border-top: 1px solid #f0f0f0;
}

.total-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-items {
    font-size: 16px;
    color: #666;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
    color: #fa8c16;
}

/* 底部栏点击效果 */
.order-summary {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.order-summary:hover {
    background-color: #f8f8f8;
}